package com.appkubes.fintech.admin.task.run;


import com.appkubes.fintech.admin.task.serivce.IPenaltyInterestService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;

/***
 * @Description:
 * @Param: 账户对账
 * @Author: XQC
 * @Date: 2019/4/23 15:32
 */
@Slf4j
@Component("billHeaderTask")
public class BillHeaderTask {

	@Autowired
	private IPenaltyInterestService iPenaltyInterestService;



	@Transactional(propagation = Propagation.NOT_SUPPORTED)
	public void run() {
		log.info("罚息计算开始。。。。。。");
//		log.info("获取终端地址开始...........................");
//		TaskJobLog batch=taskJobLogSerice.saveBatch("AJ006");
//		boolean b=true;
//		batch.setState(1);
		//iPenaltyInterestService.startPlan();
		iPenaltyInterestService.penaltyInterest();

		log.info("罚息计算结束。。。。。。");
//		batch.setEndTime(new Date());
//		taskJobLogSerice.sucBatch(batch);
//		log.info("获取终端地址结束...........................");
	}

}
